
function titleBtnClick(type) {
    switch (type){
        case "home":
            document.getElementById('homePage_iframe').src = hostUrl + '/index.php/Home/Main/index';
            break;
        case "cases":
            document.getElementById('homePage_iframe').src = hostUrl + '/index.php/Home/Cases/index?type=head&page=1';
            break;
        case "aboutUs":
            document.getElementById('homePage_iframe').src = hostUrl + '/index.php/Home/AboutUs/index';
            break;
    }
}

function bannerSizeChange() {
    if( window.innerWidth < 1200 ){
        document.body.style.width = 1200 + "px";
    }else{
        document.body.style.width = "100%";
    }
}

function changeTitleBtnBg(obj) {
    if( obj.style.color != "white" && obj.style.color != "" ){
        obj.style.color = "white";
    }else{
        obj.style.color = "#c2c2ff";
    }
}

function changeAColor( obj , type ) {
    if( type == 1 ){
        obj.style.color = "#5c5cbb";
        obj.style.textDecoration = "underline";
    }else{
        obj.style.color = "#959494";
        obj.style.textDecoration  = "none";
    }
}

function turnToBBS(){
    window.location.href="http://bbs.flash2x.org";
}